<?php defined('SYSPATH') or die('No direct script access.');

class Masters_Model extends Model {

	public function __construct() {		
		$this->db = Database::instance();
	}
	
	public function browse($type)
    {
    	$sql = '
			SELECT id, title 
			FROM masters
			WHERE type_id=?
			ORDER BY title;
    	';
		$result = $this->db->query($sql, array($type));
		return $result->result(FALSE);
    }
}    